<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}


 {if $contribute}
 
<div class="container">
 
  
  <div class="mod">
  	<h2 class="head">投稿</h2>
    <div class="body">
    	<form action="{url("?module=content&action=contribute&catid=$catid&modelid=$modelid")}" method="post" name="myform"  enctype="multipart/form-data">
<table cellpadding="0" cellspacing="1" class="table_form"> 
  {loop $forminfos[base] $field $info}
  <tr>
    <th width="100"> {if $info['star']} <font color="red">*</font>{/if} <strong>{$info[name]}：</strong><br />
    {$info[tips]} </th>
    <td>{$info[form]} </td>
  </tr>
  {/loop}
  <tr>
    <th width="100"><strong>验证码：</strong></th>
    <td><input type="text" name="checkcodestr" size="6" />
      &nbsp;&nbsp;<img src="misc/checkcode/checkcode.php" id="checkcode" onClick="this.src='misc/checkcode/checkcode.php?id='+Math.random()*5;" style="cursor:pointer;" width="48" height="22" alt="验证码,看不清楚?请点击刷新验证码" align="absmiddle" class="color_1" /></td>
  </tr>
  <tr>
    <td></td>
    <td>
    <input type="hidden" name="contribute" value="1"><input type="hidden" name="forward" value="{$forward}">
      <input type="submit" name="dosubmit" value=" 确定 ">
      <input type="reset" name="reset" value=" 清除 ">
    </td>
  </tr>
</table>
</form>
    </div>
  </div>

</div>

{else}

<div class="container">
	
    <div class="aside">
    	
        <div class="mod">
            <div class="head"></div>
            <div class="body">
                 1. 请选择要投递的栏目.<BR>
                2. 如消息为转载,请尽量注明文章来源.无主稿件可能会被暂缓发表. <BR>
                3. 欢迎原创. 您的独家报料与独特视角是编辑与访客的宝贵财富.<BR>
                4. 如果您是本站的忠实支持者，请注册为本站会员<BR>
                5. 会员可以拥有自己的空间，所有您发布的信息将会在这里显示<BR><BR>
                {if $_userid}
                欢迎您的光临：<font color="red">{$_nickname}</font><BR>
                当前积分是：<font color="red">{$_point}</font><BR>
                总共发布 <font color="red">{$totalnumber}</font> 条信息
                {else}
                还不是会员？<a href="{url("?module=member&action=register")}">点击这里注册</a><BR> 已经是会员，<a href="?module=member&action=login">点击这里登陆</a>
                {/if}
            </div>
        </div>
       
            
    </div>
    
    <div class="main">
    	<div class="mod">
            <div class="head">发布信息</div>
            <div class="body">
                <form action="{url("?module=content&action=contribute")}" method="post" name="myform"  enctype="multipart/form-data">
                <table cellpadding="0" cellspacing="1" class="table_form" style="width:980px;">
                  <tr>
                    <td>
                    {$categorys}
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <input type="hidden" name="contribute" value="1">
                      <input type="submit" name="next" value=" 下一步 ">
                    </td>
                  </tr>
                </table>
              </form>
            </div>
        </div> 
    </div>
 	
</div>


{/if}

<script LANGUAGE="javascript">
<!--
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>
{template 'footer.html'}